/**
 * Project Name:UIMS
 * File Name:Loginlog.java
 * Package Name:com.bgi.uims.module.sys.loginlog.dto
 * CreateDate:2015年3月20日 上午11:31:50
 * Copyright (c) 2015, BGI_DX All Rights Reserved.
 */

package com.bgi.uims.module.sys.loginlog.dto;

import java.util.HashMap;
import java.util.Map;

import com.bgi.uims.common.dto.Common;

/**
 * ClassName:Loginlog Function: TODO Reason: TODO
 * 
 * @CreateDate:2015年3月20日 上午11:31:50
 * @author tantianhua
 * @version
 * @since JDK 1.7
 * @see
 */

public class SysLoginlog extends Common {
	/**
	 * serialVersionUID:TODO（用一句话描述这个变量表示什么）
	 */
	private static final long serialVersionUID = -26564776301944647L;
	/**
	 * 主键
	 */
	private String logId;
	/**
	 * 工号
	 */
	private String workNumber;
	/**
	 * 登录名
	 */
	private String userName;
	/**
	 * 真实姓名
	 */
	private String realName;
	/**
	 * 登录IP
	 */
	private String loginIp;
	/**
	 * 登录时间
	 */
	private String loginTime;
	/**
	 * 登出时间
	 */
	private String logoutTime;
	/**
	 * 在线时长
	 */
	private String onlineTime;
	/**
	 * 登录结果(登录成功：1;登录失败：该用户账户不存在：2;登录失败：该用户账户密码错误：3;)
	 */
	private String loginResult;
	/**
	 * 浏览器类型
	 */
	private String browserMessage;
	/**
	 * 记录创建时间
	 */
	private String createTime;
	/**
	 * 辅助字段，查询起始时间
	 */
	private String startDate;
	/**
	 * 辅助字段，查询结束时间
	 */
	private String endDate;
	
	private String mobileNum;
	
	private String userEmail;

	public String getMobileNum() {
		return mobileNum;
	}

	public void setMobileNum(String mobileNum) {
		this.mobileNum = mobileNum;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public String getLogId() {
		return logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	public String getWorkNumber() {
		return workNumber;
	}

	public void setWorkNumber(String workNumber) {
		this.workNumber = workNumber;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public String getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(String logoutTime) {
		this.logoutTime = logoutTime;
	}

	public String getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(String onlineTime) {
		this.onlineTime = onlineTime;
	}

	public String getLoginResult() {
		return loginResult;
	}

	public void setLoginResult(String loginResult) {
		this.loginResult = loginResult;
	}

	public String getBrowserMessage() {
		return browserMessage;
	}

	public void setBrowserMessage(String browserMessage) {
		this.browserMessage = browserMessage;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	/**
	 * 将对象的信息以map形式返回，作为存储日志信息时的比较和存储
	 */
	@SuppressWarnings("rawtypes")
	public Map annotationObject(){
		Map<String,String> results = new HashMap<String, String>();
		results.put("object","登录日志");//必须有,对象描述
		results.put("table","sys_login_log");//必须有,表名描述
		results.put("tableId",this.logId);//必须有,表名描述
		results.put("describe","用户名"+this.userName);//必须有,可以指定到具体某一条，即该条的独有特性,可以描述此记录
		results.put("登录日志ID号", this.logId);
		results.put("用户名", this.userName);
		results.put("用户工号", this.workNumber);
		results.put("用户真实姓名", this.realName);
		return results;
	}
}
